<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Login_model extends CI_Model {

    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }
    
    function check_entry($_POST){
		$query = $this->db->query("SELECT * FROM admin WHERE username = '".$_POST["username"]."' and password = '".$_POST["password"]."' ");
		if($query->num_rows()>0) return 1;
		else return 0;
	}

}
/* End of file login_model.php */
/* Location: ./application/models/login_model.php */
?>